# from utils.dependencies import check_dependencies
# from pipeline.processor import RealTimeProcessorMT
# import argparse
# import platform
# import os
#
#
# def main():
#     check_dependencies()
#
#     parser = argparse.ArgumentParser(description="多线程实时语音识别+翻译")
#     parser.add_argument("--source", choices=["mic", "file", "system"], default="system",
#                         help="音频输入源 (mic: 麦克风, file: 文件, system: 系统音频输出)")
#     parser.add_argument("--file", type=str, help="音频文件路径，仅source=file时有效")
#     args = parser.parse_args()
#
#     if args.source == "system":
#         if platform.system() != "Windows":
#             raise SystemExit("❌ 系统音频捕获目前仅支持Windows系统")
#
#     if args.source == "file":
#         if not args.file or not os.path.exists(args.file):
#             raise SystemExit(f"❌ 文件不存在: {args.file}")
#
#     processor = RealTimeProcessorMT(input_source=args.source, file_path=args.file)
#     processor.run()
#
#
# if __name__ == "__main__":
#     main()
